package org.fhm.zdte.common.pojo;

import org.fhm.zdte.common.constant.protocol.ContentType;

import java.io.Serializable;
import java.util.Map;

/**
 * A request object encapsulated in a C2C or C2S process.
 *
 * @author 谭波
 * @since 2023/12/25
 */
public class Request implements Serializable {

    private static final long serialVersionUID = 1215720748342549866L;
    protected ContentType contentType = ContentType.TEXT;
    private String interfaceUrl;
    private Map<String, Object> params;

    public Request() {
    }

    public Request(String interfaceUrl, Map<String, Object> params) {
        this.interfaceUrl = interfaceUrl;
        this.params = params;
    }

    public String getInterfaceUrl() {
        return interfaceUrl;
    }

    public void setInterfaceUrl(String interfaceUrl) {
        this.interfaceUrl = interfaceUrl;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public ContentType getContentType() {
        return contentType;
    }

    public void setContentType(ContentType contentType) {
        this.contentType = contentType;
    }
}
